package com.chaihu.admin.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.chaihu.bean.dto.admin.MenuDto;
import com.chaihu.bean.in.admin.menu.ListMenusIn;
import com.chaihu.bean.out.admin.menu.ListMenusOut;
import com.chaihu.bean.out.admin.menu.QueryMenusOut;
import com.chaihu.core.base.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName MenuDto
 * @Description 菜单
 * @Author chaihu
 **/
@Service
public interface MenuServiceDao extends SuperMapper<MenuDto> {

    List<QueryMenusOut> getMenus(@Param("domain") String domain, @Param("userId") String userId);

    IPage<ListMenusOut> selectListMenusByPage(IPage<ListMenusOut> page, @Param(Constants.WRAPPER) Wrapper<ListMenusIn> queryWrapper);

    List<ListMenusOut> selectListMenus(@Param(Constants.WRAPPER) Wrapper<ListMenusIn> queryWrapper);
}
